﻿using EnglishAuction.BUS;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace EnglishAuction
{
    public partial class CheckUsername : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Thread.Sleep(2000);
            string username = Request["Username"];

            if (NguoiDungBUS.CheckUserName(username))
            {
                Response.Write("1");
            }
            else {
                Response.Write("0");
            }
            
            Response.End();
        }
    }
}